#ifndef FTPSERVER_HPP
#define FTPSERVER_HPP
#include "global.hpp"
#include "Session.hpp"


class FTPServer{
public:
    explicit FTPServer(boost::asio::io_context& io, uint16_t port);
    void Start();

private:
    void DoAccept();
    tcp::acceptor acceptor_;
    std::vector<std::shared_ptr<Session>> sessions_;
    std::shared_ptr<spdlog::logger> logger;
};
#endif //FTPSERVER_HPP